import pandas as pd
import matplotlib.pyplot as plt

noshare = [1,1]
share = [0,0]
currentnoshare=1
for i in range(2,51):
    newfactor=(365-(i-1))/365
    currentnoshare=currentnoshare*newfactor
    noshare.append(currentnoshare)
    share.append(1-currentnoshare)
myvar = pd.Series(share)
myvar.plot()
print(myvar)
plt.show()
